package com.tre.jdevtemplateboot.service;

import com.tre.jdevtemplateboot.common.dto.ResponseResult;
import com.tre.jdevtemplateboot.domain.dto.SpAppFunctionMstDto;
import com.tre.jdevtemplateboot.domain.po.SpAppFunctionMst;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tre.jdevtemplateboot.domain.vo.SpAppFunctionMstVO;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author JDev
 * @since 2023-11-15
 */
@Primary
@Service
public interface ISpAppFunctionMstService extends IService<SpAppFunctionMst> {
    ResponseResult<SpAppFunctionMstVO> findALl(String appId);

    ResponseResult saveFunction(SpAppFunctionMstDto dto);

    ResponseResult updateFunction(SpAppFunctionMstDto dto);

    ResponseResult<SpAppFunctionMstVO> findById(String id);


    ResponseResult<List<SpAppFunctionMstVO>> findByParentId(String parentId);
}
